<?php
//echo "<pre>";
//var_dump($roles);
//echo "</pre>";
//die();
?>
<div id="isikiri">
	<div id="tempatfoto">
        <img src="<?php echo base_url() . "/foto/" . $this->session->userdata('foto'); ?>" width="267" height="400" />
	</div>
    <p>&nbsp;</p>
</div>
<!---mulai div isikanan --->
<div id="isikanan">
	<div class="din pel"><?php echo $this->session->userdata('nama'); ?><span class="black">Role</span></div>
	<?php echo $this->load->view('schedule/profile_nav'); ?>

	<div class="clear"></div>
	<!---mulai div biodata --->
	<div id="biodata">
		<div id="available" class="din">Available for Term-3 2011 and Term-4 2011</div>
		<div id="role">
			<?php
			if (!empty($roles))
			{
				foreach ($roles as $row)
				{
					echo "<p class='rolex'><span class='roley'>".$row['nama_role']."</span> at ";
					echo $row['kode_pelatihan']."-".$row['angkatan']." | ";
					echo $row['nama_pelatihan'];
					echo "</p>";
				}
			} else echo "<p class='rolex'><span class='roley'>Roles not assigned</span></p>";
			?>
		</div>
	</div>
	<!---selesai div biodata --->
</div>